<tagLib name="html" />

<include file="Public:header" />
<BODY id="indexHomeBody">
<DIV id="wrapper">
<!-- wrapper S-->
<DIV style="display: none;" id="pop_window"></DIV>
<DIV class="lightinthebox">
<!-- content S-->
<!--bof-header logo and navigation display-->


<include file="Public:navigate" />


<DIV id="bodyblock">
<DIV class="minframe fl">
<!--// bof: categoriescss //-->
<include file="Public:left_categories" />

<!--// eof: categoriescss //-->

<include file="Public:popular_searches" />
<!--// bof: orderhistory //-->
<DIV class="allborder pad_1em margin_t">
<H3 class="line_30px">Recent Orders</H3>
<ul style="overflow: hidden;" id="recentlyorder">
	
    <volist name="newOrders" id="newOrder">
		<li><IMG class="fl" alt="" src="__PUBLIC__/images/icon_car_gray.gif" width="13" height="14">
		    <DIV class="roll_order">
		        <a href="__APP__/Product/id/{$newOrder.Product.id}">{$newOrder.Product.product_name}</a><BR>ship to ,{$newOrder.country}
		    </DIV>
		</LI>
	</volist>
	
</UL>
</DIV>
<SCRIPT>
    marquee(3000,70,0,'recentlyorder');
    new srcMarquee("recentlyorder", 0, 2, 180, 210, 30,
            3000, 3000, 70)
</SCRIPT>
<!--// eof: orderhistory //-->

</DIV>
<DIV class="maxframe">

<!-- Header start-->
<include file="Public:header_navigate" />

<!--bof-navigation display-->
<include file="Public:search_bar" />
<!-- Header end-->
<!-- bof: layer_switch -->
<DIV id="layer_switch"
     class="index_layer allborder right_big_con margin_t relative">

<DIV id="boxswitch">
    <DIV id="border_left" class="off" title="NewArrivals">
        <a href="http://www.go-wholesale.com/products_new.html?productsort=5"><SPAN>{$productDetail.product_name}</SPAN></a>
    </DIV>
</DIV>
<DIV id="BestDeal" class="hide">
    <ul></UL>
</DIV>
<DIV id="FreeShipping" class="hide">
    <ul></UL>
</DIV>
<DIV class="show">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
         <form id="dataForm" name="dataForm" method="POST" action="__APP__/ShoppingCart/buy" enctype="multipart/form-data">
             <input type="hidden" name="id" value="{$productDetail.id}"/>
             <tr>
                 <td width="10%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">产品编号： </td>
                 <td width="90%" height="30" bgcolor="#f2f2f2">{$productDetail.product_no}</td>
             </tr>
             <tr>
                 <td height="30" align="right" class="left_txt2">产品名称：</td>
                 <td height="30">{$productDetail.product_name}</td>
             </tr>
             <tr>
                 <td height="30" align="right" class="left_txt2">原始价格：</td>
                 <td height="30">
                 	{$productDetail.original_price}
                 </td>
             </tr>
             <tr>
                 <td height="30" align="right" class="left_txt2">折扣：</td>
                 <td height="30">
                 	{$productDetail.discount}%
                 </td>
             </tr>
             <tr>
                 <td height="30" align="right" class="left_txt2">出售价格：</td>
                 <td height="30">
                 	{$productDetail.current_price}
                 </td>
             </tr>
             <tr>
                 <td height="30" align="right" class="left_txt2">描述：</td>
                 <td>
                 	{$productDetail.description}
                 </td>
             </tr>
             
             <tr>
                 <td height="30" align="right" class="left_txt2">商品尺寸：</td>
                 <td height="30">
                 	<select id="size" name="size">
                     <volist name="size" id="sizeMap">
                         <option value="{$sizeMap.code_name}">{$sizeMap.code_name}</option>&nbsp;&nbsp;&nbsp;
                     </volist>
                     </select>
                 </td>
             </tr>
             <tr>
                 <td height="30" align="right" class="left_txt2">商品图片：</td>
                 <td height="30">
                     <img src="{$_SESSION['IMG_URL']}{$productDetail.pic}" alt="{$vo.product_no}"
                          width="120px" heigth="80px"></td>
             </tr>
        <tr>
            <td width="50%" height="30" align="center" colspan="2">
            	<input type="button" value="Add to shoppingcart" name="B1" onclick="addToShoppingCar('{$productDetail.pid}','{$productDetail.category_id}');"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            	<input type="submit" value="Buy Now" name="B1"/>
            </td>
        </tr>
    </form>
</table>
<SCRIPT>
	function addToShoppingCar(product_id, category_id){
		ThinkAjax.send('__APP__/ShoppingCart/add','ajax=1&product_id='+product_id+"&category_id=" + category_id + "&size=" + document.getElementById("size").value,complete,'result');
	}
	function complete(data,status){
		if (status==1){
			alert("Add to shopping car successfull!");
		}
	}
</SCRIPT>
</DIV>
</DIV>
</DIV>
<!-- eof: layer_switch -->
<include file="Public:bottom" />
<!--// eof: recently viewed //-->
<!--bof- site copyright display -->
<include file="Public:copyright" />
</BODY>
</HTML>
